package com.huang.springboot.service;

import com.huang.springboot.pojo.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yili_gi
 */
public interface DepartmentService {

    /**
     * 获取所有部门信息
     * @return
     */
    List<Department> getDepartments();

    /**
     * 通过部门id获取部门
     * @param id
     * @return
     */
    Department getDepartmentById(int id);

    /**
     * 通过部门id获取部门名称
     * @param id
     * @return
     */
    String getDepartmentNameById(int id);

    int addDepartment(Department department);

    int updateDepartment(Department department);

    int removeDepartment(int departmentId);

}
